function init_object_up(object_type, object_id, is_authenticated) {
  $.getJSON('/public/get-object-up-info/', {'object_type': object_type, 'object_id': object_id}, function(data) {
    $('.up-btn').next('h5').text(data['up_count']);
    //if (is_authenticated == 'True') {
      if (!data['has_up']) {
        $('.up-btn').click(function(event) {
          $.getJSON('/public/user-object-up/', {'object_type': object_type, 'object_id': object_id}, function(data) {
            if (data['status']) {
              $('.up-btn').next('h5').text(data['data']['up_count']);
              $('.up-btn').addClass('disable');
              $('.up-btn').unbind('click');
            } else {
              alert(data['message']);
            }
          });
        });
      } else {
        $('.up-btn').addClass('disable');
      }
    //} else {
    //  $('.up-btn').addClass('disable');
    //}
  });
}
